package com.ek.common;

import java.util.LinkedList;

import com.ek.kademlia.DefaultBucket;

public interface RoutingTable {
    /**
     * Size of routing table.
     */
    public final static int B = 160;

    /**
     * insert the bucket in the table.
     * @param bucket
     */
    public boolean addBucket(DefaultBucket bucket);

    /**
     * @param key
     * @param alpha
     */
    public LinkedList<Bucket> getClosestBucket(byte[] key, int alpha);

}
